<div id="seotoaster" class="cpanel">
	<div id="showhide">{%Show/Hide panel%}</div>
	<div id="admincpanel">
		<div id="cpanellogowrap"><div id="cpanelimg"></div></div>
		<ul id="menu2" class="smenu expandfirst">
			<?php if(!isset($this->newsData)):?>
				<li>
					<a href="javascript:;"><span>{%PAGES%}</span></a>
					<ul>
					<li class="cpanelsubtitle">{%This page%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/editpage/pageId/<?php echo $this->pageData['id']; ?>?TB_iframe=true&height=580&width=860','');" >{%Edit page properties%}</a></li>
							<?php if($this->pageData['url']!='index' && $this->pageData['url'] != RCMS_Object_QuickConfig_QuickConfig::$draftCategoryUrl) { ?>
						<li><a onclick="if(!confirm('Do you really want to delete this page?')){return false;};" href="<?php echo $this->websiteUrl; ?>sys/backend_page/deletepage/pageId/<?php echo $this->pageData['id']; ?>" >{%Delete this page%}</a></li>
						  <?php } ?>
						<li class="cpanelsubtitle">{%Other pages%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/addpage/?TB_iframe=true&height=580&width=860','');" >{%Create a page%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/listall/?TB_iframe=true&height=580&width=860','');" >{%Organize pages%}</a></li>
						<li><a id="edit404" href="javascript:;" >{%Edit 404 page%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_page/draftlist/?TB_iframe=true&height=500&width=500','');" >{%Draft pages%}&nbsp;(<?php echo $this->cntDraftPages; ?>)</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:;"><span>{%MEDIA%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/uploadthings/?TB_iframe=true&height=580&width=570','');" >{%Upload things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_things/removethings/?TB_iframe=true&height=600&width=590','');" >{%Remove things%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_apiimages/login/?TB_iframe=true&height=500&width=620','');" >{%Import images%}</a></li>
					</ul>
				</li>
				<li>
					<a href="javascript:;"><span>{%SEO%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_robots/editrobots/?TB_iframe=true&height=450&width=570','');" >{%Edit Robots.txt%}</a></li>
						<!--<li><a href="javascript:;">Site Promotion</a></li>-->
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_redirect/manageredirect/?TB_iframe=true&height=580&width=830','');"  >{%Add/Edit 301%}</a></li>
						<li class="cpanelsubtitle">{%Link strategy%}</li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_deeplink/managedeeplinks/?TB_iframe=true&height=510&width=790','');" >{%Deeplinks%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_prsculpting/index/?TB_iframe=true&height=590&width=590','');" >{%Sculpting%}</a></li>
					</ul>
				</li>
               <li>
                    <a href="javascript:;"><span>{%SHOPPING%}</span></a>
                    <ul>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/product/?TB_iframe=true&height=525&width=845','');">{%Add/Edit Product%}</a></li>
                        <li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_shopping/config/?TB_iframe=true&height=525&width=845','');">{%Config%}</a></li>
                    </ul>
                </li>
			<?php endif; ?>
			<li>
				<a href="javascript:;"><span>{%LAYOUT%}</span></a>
				<ul>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/add/?TB_iframe=true&height=540&width=730','');" >{%Add Template%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/edit/id/<?php echo isset($this->pageData['templateId']) ? $this->pageData['templateId'] : $this->newsData['templateId']; ?>/?TB_iframe=true&height=540&width=750','');" >{%Edit this Template%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_css/editcss/pageId/<?php echo $this->pageData['id']; ?>/?TB_iframe=true&height=590&width=570','');" >{%Edit CSS%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_theme/index/?TB_iframe=true&height=660&width=600','');" >{%Themes%}</a></li>
					<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_template/listvars/?TB_iframe=true&height=590&width=570','');" >{%Widgets & Tokens%}</a></li>
				</ul>
			</li>
			<?php if(!isset($this->newsData)):?>
				<li>
					<a href="javascript:;"><span>{%OTHER%}</span></a>
					<ul>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_config/manageconfig/?TB_iframe=true&height=575&width=570','');" >{%Manage Config%}</a></li>
						<li><a href="javascript:;" onclick="tb_show('','<?php echo $this->websiteUrl; ?>sys/backend_plugin/index/?TB_iframe=true&height=660&width=600','');" >{%Plugins%}</a></li>
					</ul>
				</li>
			<?php endif; ?>
			<li>
				<a href="javascript:;"><span>{%SERVICES%}</span></a>
					<?php echo $this->servicesContent; ?>
			</li>
			<li>
				<a href="<?php echo $this->websiteUrl; ?>sys/login/logout" ><span>{%LOGOUT%}</span></a>
			</li>
		</ul>
		<?php echo '<div id="seotoasterversion">'.addslashes(htmlspecialchars(file_get_contents("../public/version.txt"))).'</div>'; ?>
	</div>
</div>
